package com.qf.service.impl;

import com.qf.entity.WmsUser;
import com.qf.mapper.WmsUserMapper;
import com.qf.service.WmsUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author Xiaoze
 * @date 2024/7/22
 * @desc
 */
@Service
public class WmsUserServiceImpl implements WmsUserService {
    @Autowired
    private WmsUserMapper wmsUserMapper;

    @Override
    public WmsUser login(WmsUser wmsUser) {
        return wmsUserMapper.login(wmsUser);
    }

    @Override
    public List<WmsUser> findAll(HashMap<String, String> map) {
        System.out.println("map的值是"+map);
        return wmsUserMapper.findAll(map);
    }

    @Override
    public boolean delBatch(List<Integer> ids) {
        return wmsUserMapper.delBatch(ids);
    }

    @Override
    public boolean addWmsUser(WmsUser wmsUser) {
        return wmsUserMapper.addWmsUser(wmsUser);
    }


}
